package com.albb.scotk.conttoller;


import com.albb.scotk.feign.ScotkFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RequestMapping("/scotkFeign")
@RestController
public class ScotkFeignContorller {

    @Autowired
    private ScotkFeignService scotkFeignService;

    @RequestMapping("/add")
    public String add(String str) {
        try {
            return scotkFeignService.delStock(str);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return "失败";
    }


}
